package com.cc.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;


//@PropertySource(value = "classpath:my.properties",encoding = "UTF-8")
public class TodayConfig {

    @Value("${names}")
    private String names;

    @Value("${ages}")
    private String ages;

    @Value("${holiday}")
    private String holiday;

    @Value("${home}")
    private String home;

    @Bean
    public void ShowTodayDao()
    {
        System.out.println("names:"+names);
        System.out.println("ages:"+ages);
        System.out.println("holiday:"+holiday);
        System.out.println("home:"+home);
    }
}
